/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "客户表",TableName = "customermodel")]
    public partial class customermodel:BaseEntity
    {
        /// <summary>
       ///客户id
       /// </summary>
       [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
       [Key]
       [Display(Name ="客户id")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long Id { get; set; }

       /// <summary>
       ///客户编号
       /// </summary>
       [Display(Name ="客户编号")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string CustomerCode { get; set; }

       /// <summary>
       ///客户名称
       /// </summary>
       [Display(Name ="客户名称")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string CustomerName { get; set; }

       /// <summary>
       ///所属行业
       /// </summary>
       [Display(Name ="所属行业")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? CustomerType { get; set; }

       /// <summary>
       ///客户来源
       /// </summary>
       [Display(Name ="客户来源")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string CustomerSource { get; set; }

       /// <summary>
       ///联系人
       /// </summary>
       [Display(Name ="联系人")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string CustomerContact { get; set; }

       /// <summary>
       ///联系电话
       /// </summary>
       [Display(Name ="联系电话")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string CustomerTel { get; set; }

       /// <summary>
       ///电子邮箱
       /// </summary>
       [Display(Name ="电子邮箱")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string CustomerEmail { get; set; }

       /// <summary>
       ///销售部门
       /// </summary>
       [Display(Name ="销售部门")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string DeptId { get; set; }

       /// <summary>
       ///销售负责人
       /// </summary>
       [Display(Name ="销售负责人")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? CustomerPersonId { get; set; }

       /// <summary>
       ///状态
       /// </summary>
       [Display(Name ="状态")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string CustomerState { get; set; }

       /// <summary>
       ///客户地址
       /// </summary>
       [Display(Name ="客户地址")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string CustomerAddr { get; set; }

       /// <summary>
       ///客户备注
       /// </summary>
       [Display(Name ="客户备注")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string CustomerDesc { get; set; }

       /// <summary>
       ///删除标识
       /// </summary>
       [Display(Name ="删除标识")]
       [Column(TypeName="sbyte")]
       public sbyte? IsDel { get; set; }

       /// <summary>
       ///客户财务表
       /// </summary>
       [Display(Name ="客户财务表")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       public long? FinanceId { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(15)]
       [Column(TypeName="nvarchar(15)")]
       public string Creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? CreateDate { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(15)]
       [Column(TypeName="nvarchar(15)")]
       public string Modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       public DateTime? ModifyDate { get; set; }

       /// <summary>
       ///创建人id
       /// </summary>
       [Display(Name ="创建人id")]
       [Column(TypeName="int")]
       public int? CreateID { get; set; }

       /// <summary>
       ///修改人id
       /// </summary>
       [Display(Name ="修改人id")]
       [Column(TypeName="int")]
       public int? ModifyID { get; set; }

       
    }
}